<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">  
  <title>视频类型列表</title>
 </head>
 <body>
 <table align="center" width="80%" border=1>  
 <center><h3>视频类型列表</h3></center> 
 <tr>
   <th>编号</th>  
   <th>视频类型</th>
   <th>操作</th> 
 </tr>
 <?php
   require_once('system/dbConnect.php');
   require_once('system/MyFunc.php');   
   connect();
   $sql = "select * from videotype "; 
  $result = fetch_array($sql); 
  if(is_array($result) && !empty($result)){  
 foreach($result as $row) 
  {
   echo '<tr>';
   echo '<td>'.$row['tid'].'</td>';
   echo '<td>'.$row['typename'].'</td>';
   echo '<td><a href="vtEditform.php?id='.$row['tid'].' ">修改</a> | 
             <a href="vtdelete.php?id='.$row['tid'].'" >删除</a></td>';
   echo '</tr>';  
  } 
}
?>
 </table>
  <center><h4>没有想要的信息？试试搜索吧!  <a href="vtsearch.php?">搜索</a></h4></center>
 </body>
 </html>

